package com.bijiawang.user.bean;


import java.text.SimpleDateFormat;
import java.util.Date;

public class History {
    private Integer num;
    private Integer Id;
    private String username;
    private String goodsname;
    private Date dtime;
    private String url;

    private String creatTimeStr;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public Date getDtime() {
        return dtime;
    }

    public void setDtime(Date createTime) {
        this.dtime = createTime;
        String time = sdf.format(createTime);
        setCreatTimeStr(time);
    }

    public String getCreatTimeStr() {
        return creatTimeStr;
    }

    public void setCreatTimeStr(String creatTimeStr) {
        this.creatTimeStr = creatTimeStr;
    }




    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }


    public Integer getId() {
        return Id;
    }

    public void setId(Integer id) {
        Id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    @Override
    public String toString() {
        return "History{" +
                "num=" + num +
                ", Id=" + Id +
                ", username='" + username + '\'' +
                ", goodsname='" + goodsname + '\'' +
                ", dtime=" + dtime +
                ", url='" + url + '\'' +
                ", creatTimeStr='" + creatTimeStr + '\'' +
                ", sdf=" + sdf +
                '}';
    }
/* public Date getDtime() {
        return dtime;
    }

    public void setDtime(Date dtime) {
        this.dtime = dtime;
    }
*/

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
